package org.simple.wechat.demo.dto;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import org.simple.wechat.demo.config.WeekDeserialize;
import org.simple.wechat.demo.config.WeekSerialize;

/***
 * @author gaoqijin
 * @date 2020-11-18
 * @Description
 */
@JsonDeserialize(using = WeekDeserialize.class)
@JsonSerialize(using = WeekSerialize.class)
public enum  Week {
    SUNDAY(7,"礼拜天"),
    MONDAY(1,"礼拜一"),
    TUESDAY(2,"礼拜二"),
    WEDNESDAY(3,"礼拜三"),
    THURSDAY(4,"礼拜四"),
    FRIDAY(5,"礼拜五"),
    SATURDAY(6,"礼拜六"),
    ;
    private int code;
    private String desc;
    Week(int code,String desc) {
        this.code = code;
        this.desc = desc;
    }
    public int getCode() {
        return code;
    }
    public void setCode(int code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
//    周日：Sunday Sun.
//    周一：Monday Mon.
//    周二：Tuesday Tue.
//    周三：Wednesday Wed.
//    周四：Thursday Thur.
//    周五：Friday Fri.
//    周六：Saturday Sat.
